import { createRouter, createWebHistory } from 'vue-router'
//找到Personal.vue文件
import Personal from '../views/Personal/Personal.vue'
import Home from '../views/Home/Home.vue'
import Personal_she from '../views/Personal_conent/Personal_xin/Personal_she.vue'
import Personal_ti from '../views/Personal_conent/Personal_xin/Personal_ti.vue'
import Personal_ge from '../views/Personal_conent/Personal_xin/Personal_ge.vue'
import Personal_salary from '../views/Personal_conent/Personal_xin/Personal_salary.vue'
import Personal_contacts from '../views/Personal_conent/Personal_xin/Personal_contacts.vue'
import Personal_file from '../views/Personal_conent/Personal_xin/Personal_file.vue'
import Personal_examination from '../views/Personal_conent/Personal_xin/Personal_examination.vue'
import Personal_session from '../views/Personal_conent/Personal_xin/Personal_session.vue'



const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/home'
    },
    {
      path: '/personal',
      component: Personal
    },

    {
      path: '/home', // home的路由  

      component: Home
    },
    //个人办公路由
    // 个人设置
    {
      path: '/personal_she',
      name: 'personal_she',
      component: Personal_she
    },
    //  提醒信息
    {
      path: '/personal_ti',
      name: 'personal_ti',
      component: Personal_ti
    },
    //  个人资料
    {
      path: '/personal_ge',
      name: 'personal_ge',
      component: Personal_ge
    },
    //我的薪资
    {
      path: '/personal_salary',
      name: 'personal_salary',
      component: Personal_salary
    },
    //内部通信录
    {
      path: '/personal_contacts',
      name: 'personal_contacts',
      component: Personal_contacts
    },
    //我上传过的文件
    {
      path: '/personal_file',
      name: 'personal_file',
      component: Personal_file
    },
    //我的培训考试
    {
      path: '/personal_examination',
      name: 'personal_examination',
      component: Personal_examination
    },
    //我的会话记录
    {
      path: '/personal_session',
      name: 'personal_session',
      component: Personal_session
    },

    {path:'/archives',component:()=>import('@pzbpe/archives.vue')}
  ]
})

export default router
